import 'package:boss/ui/widget/alert/alert.dart';
import 'package:boss/ui/widget/back_confirmation.dart';
import 'package:boss/ui/widget/center_title_app_bar.dart';
import 'package:flutter/material.dart';
import 'package:hi_common/hi_common.dart';
import 'package:router/annotation.dart';

import 'widget/binding_browser.dart';

@RouterConfig(BindingPage.pageName)
class BindingPage extends StatefulWidget {
  static const pageName = '/bindingPage';

  @override
  _BindingPageState createState() => _BindingPageState('绑定收款账户');
}

class _BindingPageState extends BaseState<BindingPage> {
  _BindingPageState(String pageName) : super(pageName);

  @override
  Widget build(BuildContext context) {
    return BackConfirmation(
      backConfirmationText: '绑定收款账户还未完成确认返回么？',
      child: Scaffold(
        appBar: CenterTitleAppBar(
          title: '绑定收款账户',
          backConfirmationText: '绑定收款账户还未完成确认返回么？',
        ),
        body: BindingBrowser(),
      ),
    );
  }
}
